Mercurial > hg > octave-lojdl > gnulib-hg
changeset 4268:4933582b32c1
Portability to Woe32.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 30 Mar 2003 16:20:41 +0000 |
parents | 93a237020fc6 |
children | 45a2c0a1d4bb |
files | lib/ChangeLog lib/copy-file.c m4/ChangeLog m4/copy-file.m4 |
diffstat | 4 files changed, 13 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2003-03-30 Bruno Haible <bruno@clisp.org> + + * copy-file.c (copy_file_preserving): Don't set owner if the function + chown() doesn't exist. + 2003-03-28 Bruno Haible <bruno@clisp.org> * copy-file.h: New file, from GNU gettext.
--- a/lib/copy-file.c +++ b/lib/copy-file.c @@ -108,8 +108,10 @@ } #endif +#if HAVE_CHOWN /* Preserve the owner and group. */ chown (dest_filename, statbuf.st_uid, statbuf.st_gid); +#endif /* Preserve the access permissions. */ chmod (dest_filename, mode);
--- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,7 @@ +2003-03-30 Bruno Haible <bruno@clisp.org> + + * copy-file.m4 (gl_COPY_FILE): Add check for chown(). + 2003-03-28 Bruno Haible <bruno@clisp.org> * copy-file.m4: New file.
--- a/m4/copy-file.m4 +++ b/m4/copy-file.m4 @@ -1,4 +1,4 @@ -# copy-file.m4 serial 1 +# copy-file.m4 serial 2 dnl Copyright (C) 2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General @@ -9,5 +9,5 @@ AC_DEFUN([gl_COPY_FILE], [ AC_CHECK_HEADERS_ONCE(unistd.h utime.h) - AC_CHECK_FUNCS(utime utimes) + AC_CHECK_FUNCS(chown utime utimes) ])