From: Zefram <zefram@dcs.warwick.ac.uk>
To: zsh-workers@math.gatech.edu (Z Shell workers mailing list)
Subject: file mode type
Date: Wed, 29 Jan 1997 15:23:30 +0000 (GMT) [thread overview]
Message-ID: <4951.199701291523@stone.dcs.warwick.ac.uk> (raw)
-----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-----
reply other threads:[~1997-01-29 15:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4951.199701291523@stone.dcs.warwick.ac.uk \
--to=zefram@dcs.warwick.ac.uk \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).