Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
file mode type
- X-seq: zsh-workers 2843
- From: Zefram <zefram@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx (Z Shell workers mailing list)
- Subject: file mode type
- Date: Wed, 29 Jan 1997 15:23:30 +0000 (GMT)
-----BEGIN PGP SIGNED MESSAGE-----
Some Unices use unsigned long for mode_t. This patch avoids resulting
errors.
-zefram
*** Src/Modules/files.c 1997/01/29 03:25:41 1.11
--- Src/Modules/files.c 1997/01/29 06:01:50
***************
*** 291,297 ****
nicezputs(nam, stderr);
fputs(": replace `", stderr);
nicezputs(q, stderr);
! fprintf(stderr, "', overriding mode %04o? ", st.st_mode & 07777);
fflush(stderr);
if(!ask())
return 0;
--- 291,298 ----
nicezputs(nam, stderr);
fputs(": replace `", stderr);
nicezputs(q, stderr);
! fprintf(stderr, "', overriding mode %04lo? ",
! (unsigned long) (st.st_mode & 07777));
fflush(stderr);
if(!ask())
return 0;
***************
*** 396,402 ****
nicezputs(nam, stderr);
fputs(": remove `", stderr);
nicezputs(arg, stderr);
! fprintf(stderr, "', overriding mode %04o? ", st.st_mode & 07777);
fflush(stderr);
if(!ask())
return 0;
--- 397,404 ----
nicezputs(nam, stderr);
fputs(": remove `", stderr);
nicezputs(arg, stderr);
! fprintf(stderr, "', overriding mode %04lo? ",
! (unsigned long) (st.st_mode & 07777));
fflush(stderr);
if(!ask())
return 0;
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
iQCVAwUBMu7pkXD/+HJTpU/hAQE3rAP/ZGwgsD/UhHB710tyXuJhxH2JUwGaMAIv
OTljzP8VZ59ubWgzNUFoiZW/CuzFKE2jLePQxMs8a2pretB3/9pUytw82Kc14Ios
jO0ua1SQMOWTworxi6i2hUQmzsyv57XQAjHctOW1EEjx/K51E6pa7z1eHJ7R1ZxO
iVp4gkD+OuE=
=eEtK
-----END PGP SIGNATURE-----
Messages sorted by:
Reverse Date,
Date,
Thread,
Author