diff options
author | Jim Meyering <jim@meyering.net> | 1998-01-10 10:22:30 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-01-10 10:22:30 +0000 |
commit | 3edbca0e04a6bf2782fce4446029972e56ee6494 (patch) | |
tree | 6832dde314c2d4b9d97ee03c2682aac9835efbd2 /lib | |
parent | c062a35803ddd40f218f837aca7c933abae35451 (diff) | |
download | coreutils-3edbca0e04a6bf2782fce4446029972e56ee6494.tar.xz |
(make_path): Put only newly created directories on the LEADING_DIRS list.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/makepath.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/makepath.c b/lib/makepath.c index ff499cab0..98e1ff573 100644 --- a/lib/makepath.c +++ b/lib/makepath.c @@ -1,5 +1,5 @@ /* makepath.c -- Ensure that a directory path exists. - Copyright (C) 1990, 1997 Free Software Foundation, Inc. + Copyright (C) 1990, 1997, 1998 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -255,7 +255,7 @@ make_path (const char *argpath, return 1; } - if (re_protect) + if (newly_created_dir && re_protect) { struct ptr_list *new = (struct ptr_list *) alloca (sizeof (struct ptr_list)); |