summaryrefslogtreecommitdiff
path: root/src/rm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rm.c')
-rw-r--r--src/rm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rm.c b/src/rm.c
index 0b82f73fe..e7db1cc24 100644
--- a/src/rm.c
+++ b/src/rm.c
@@ -152,6 +152,10 @@ rm_option_init (struct rm_options *x)
x->root_dev_ino = NULL;
x->stdin_tty = isatty (STDIN_FILENO);
x->verbose = 0;
+
+ /* Since this program exits immediately after calling `rm', rm need not
+ expend unnecessary effort to preserve the initial working directory. */
+ x->require_restore_cwd = false;
}
int