summaryrefslogtreecommitdiff
path: root/debian/patches/patch.DOS
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/patch.DOS')
-rw-r--r--debian/patches/patch.DOS21
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/patches/patch.DOS b/debian/patches/patch.DOS
new file mode 100644
index 0000000..7b595b9
--- /dev/null
+++ b/debian/patches/patch.DOS
@@ -0,0 +1,21 @@
+--- main.c~orig Sat Jan 9 15:31:13 1999
++++ main.c Wed Nov 17 19:04:44 1999
+@@ -984,6 +984,18 @@
+ usrerr("Permission denied");
+ finis(FALSE, EX_USAGE);
+ }
++ if (OpMode == MD_INITALIAS &&
++ RealUid != 0 &&
++ RealUid != TrustedUid &&
++ !wordinclass(RealUserName, 't'))
++ {
++ if (LogLevel > 1)
++ sm_syslog(LOG_ALERT, NOQID,
++ "user %d attempted to rebuild the alias map",
++ RealUid);
++ usrerr("Permission denied");
++ finis(FALSE, EX_USAGE);
++ }
+
+ if (MeToo)
+ BlankEnvelope.e_flags |= EF_METOO;