X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;ds=sidebyside;f=uip%2Fwhatnowsbr.c;fp=uip%2Fwhatnowsbr.c;h=4e93a1ab93df0485670dcf3a8dca6263f4a8435b;hb=9f9bfa91d88b3ca4cd9206c1f2b17c6d13ebcaba;hp=e958ef37ed16feb978cfafdb44a3d82ccc2a29dc;hpb=72d1181d50ccb0b410e3745f4fd3981fd673d647;p=mmh diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index e958ef3..4e93a1a 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -608,9 +608,6 @@ editfile(char **ed, char **arg, char *file, int use, struct msgs *mp, #ifdef HAVE_LSTAT int slinked = 0; -#if 0 - int oumask; /* PJS: for setting permissions on symlinks. */ -#endif #endif /* HAVE_LSTAT */ /* Was there a previous edit session? */ @@ -648,15 +645,7 @@ editfile(char **ed, char **arg, char *file, int use, struct msgs *mp, unlink(linkpath); #ifdef HAVE_LSTAT if (link(altpath, linkpath) == NOTOK) { -#if 0 - /* I don't think permission on symlinks matters /JLR */ - /* PJS: else symlinks are world 'r' */ - oumask = umask(0044); -#endif symlink(altpath, linkpath); -#if 0 - umask(oumask); /* PJS: else symlinks are world 'r' */ -#endif slinked = 1; } else { slinked = 0;