From 56d5c6f7cadcd5f0088d8b563434948d0b2a898c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 29 May 2004 22:06:25 +0000 Subject: [PATCH] (rm_option_init): Initialize new member, x->require_restore_cwd. --- src/mv.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mv.c b/src/mv.c index c310595647..240beb31ba 100644 --- a/src/mv.c +++ b/src/mv.c @@ -106,6 +106,12 @@ rm_option_init (struct rm_options *x) x->stdin_tty = 0; x->verbose = 0; + + /* Since this program may well have to process additional command + line arguments after any call to `rm', that function must preserve + the initial working directory, in case one of those is a + `.'-relative name. */ + x->require_restore_cwd = true; } static void -- 2.47.3