Mercurial > hg > octave-kai > gnulib-hg
changeset 1205:594755a693bf
(make_path): Put only newly created directories on the LEADING_DIRS list.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sat, 10 Jan 1998 10:22:30 +0000 |
parents | 28ff40a118b8 |
children | 5032c8c66257 |
files | lib/makepath.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ return 1; } - if (re_protect) + if (newly_created_dir && re_protect) { struct ptr_list *new = (struct ptr_list *) alloca (sizeof (struct ptr_list));