From: Jim Meyering Date: Sat, 29 May 2004 22:06:25 +0000 (+0000) Subject: (rm_option_init): Initialize new member, x->require_restore_cwd. X-Git-Tag: v5.3.0~1478 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=56d5c6f7cadcd5f0088d8b563434948d0b2a898c;p=thirdparty%2Fcoreutils.git (rm_option_init): Initialize new member, x->require_restore_cwd. --- 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