diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-10 11:06:55 -0400 | 
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-10 11:06:55 -0400 | 
| commit | 51c43df478f58dda80fe6822232d9b615ae9ce41 (patch) | |
| tree | 00cfd92fc89faeea2e451c1a20ee4862e7574552 /src/deliverable.c | |
| parent | 2f84e24a69fa8d83a73fad9280dbf8a5635e4768 (diff) | |
| download | stasis-51c43df478f58dda80fe6822232d9b615ae9ce41.tar.gz | |
Remove HOME redirection
* If the user wants that, they need to reassign HOME manually prior to executing OMC
Diffstat (limited to 'src/deliverable.c')
| -rw-r--r-- | src/deliverable.c | 5 | 
1 files changed, 0 insertions, 5 deletions
| diff --git a/src/deliverable.c b/src/deliverable.c index e00c3f7..f3387c8 100644 --- a/src/deliverable.c +++ b/src/deliverable.c @@ -129,7 +129,6 @@ void delivery_free(struct Delivery *ctx) {      guard_runtime_free(ctx->runtime.environ);      guard_free(ctx->storage.root);      guard_free(ctx->storage.tmpdir); -    guard_free(ctx->storage.home);      guard_free(ctx->storage.delivery_dir);      guard_free(ctx->storage.tools_dir);      guard_free(ctx->storage.package_dir); @@ -244,7 +243,6 @@ void delivery_init_dirs_stage1(struct Delivery *ctx) {          exit(1);      } -    path_store(&ctx->storage.home, PATH_MAX, ctx->storage.root, "home");      path_store(&ctx->storage.build_dir, PATH_MAX, ctx->storage.root, "build");      path_store(&ctx->storage.output_dir, PATH_MAX, ctx->storage.root, "output"); @@ -684,9 +682,6 @@ int delivery_init(struct Delivery *ctx) {      // Create OMC directory structure      delivery_init_dirs_stage1(ctx); -    // Avoid contaminating the user account with artifacts -    // Some SELinux configurations will not enjoy this change. -    //setenv("HOME", ctx->storage.home, 1);      char config_local[PATH_MAX];      sprintf(config_local, "%s/%s", ctx->storage.tmpdir, "config");      setenv("XDG_CONFIG_HOME", config_local, 1); | 
