Mail Archives: cygwin/1997/02/28/19:42:04
It appears that this file-permissions-related edit our the Sun CVS
sources got missed in yesterday's posting. Apologies for any
inconvenience.
Victor J. Griswold, D.Sc.
Aironet Wireless Communications, Inc.
voice: 330-664-7987
fax: 330-664-7301
email: (MS-Mail) vgris AT aironet DOT com
(MIME) Victor DOT Griswold AT pobox DOT com
Index: CVS_src/src/filesubr.c
===================================================================
RCS file: s:/Software/AWC_Tools/CVSROOT/CVS_src/src/filesubr.c,v
retrieving revision 1.1.1.1.2.2
diff -c -r1.1.1.1.2.2 filesubr.c
*** filesubr.c 1997/02/28 18:37:36 1.1.1.1.2.2
--- filesubr.c 1997/02/28 20:14:43
***************
*** 62,67 ****
--- 62,69 ----
error (1, errno, "cannot open %s for copying", from);
if (fstat (fdin, &sb) < 0)
error (1, errno, "cannot fstat %s", from);
+ } else {
+ sb.st_mode = 0666;
}
if ((fdout = creat (to, (int) sb.st_mode & 07777)) < 0)
error (1, errno, "cannot create %s for copying", to);
***************
*** 71,76 ****
--- 73,80 ----
error (1, errno, "cannot open %s for copying", from);
if (fstat (fdin, &sb) < 0)
error (1, errno, "cannot fstat %s", from);
+ } else {
+ sb.st_mode = 0666;
}
if ((fdout = open (to, O_CREAT | O_TRUNC | O_RDWR | O_BINARY,
(int) sb.st_mode & 07777)) < 0)
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -