aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/calendar
diff options
context:
space:
mode:
authorMike Pritchard <mpp@FreeBSD.org>1997-02-16 18:26:18 +0000
committerMike Pritchard <mpp@FreeBSD.org>1997-02-16 18:26:18 +0000
commita5f5026375ccc37cf634282c2a89b912aa66a2dc (patch)
tree1cc8845afc03d187f84299609de2837b9830cde2 /usr.bin/calendar
parent319ad1705e37656d13112180083a4fe391d0eb41 (diff)
downloadsrc-a5f5026375ccc37cf634282c2a89b912aa66a2dc.tar.gz
src-a5f5026375ccc37cf634282c2a89b912aa66a2dc.zip
Notes
Diffstat (limited to 'usr.bin/calendar')
-rw-r--r--usr.bin/calendar/io.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/calendar/io.c b/usr.bin/calendar/io.c
index b15de6fef744..014a8053a311 100644
--- a/usr.bin/calendar/io.c
+++ b/usr.bin/calendar/io.c
@@ -259,15 +259,15 @@ opencal()
(void)close(pdes[0]);
uid = geteuid();
if (setuid(getuid()) < 0) {
- fprintf(stderr, "calendar: setuid failed\n");
+ fprintf(stderr, "calendar: first setuid failed\n");
_exit(1);
};
if (setgid(getegid()) < 0) {
- fprintf(stderr, "calendar: setegid failed\n");
+ fprintf(stderr, "calendar: setgid failed\n");
_exit(1);
}
if (setuid(uid) < 0) {
- fprintf(stderr, "caelndar: setuid failed\n");
+ fprintf(stderr, "calendar: setuid failed\n");
_exit(1);
}
execl(_PATH_CPP, "cpp", "-P", "-I.", _PATH_INCLUDE, NULL);
@@ -326,15 +326,15 @@ closecal(fp)
_exit(1);
};
if (setgid(getegid()) < 0) {
- fprintf(stderr, "calendar: setegid failed\n");
+ fprintf(stderr, "calendar: setgid failed\n");
_exit(1);
}
if (setuid(uid) < 0) {
- fprintf(stderr, "caelndar: setuid failed\n");
+ fprintf(stderr, "calendar: setuid failed\n");
_exit(1);
}
execl(_PATH_SENDMAIL, "sendmail", "-i", "-t", "-F",
- "\"Reminder Service\"", "-f", "root", NULL);
+ "\"Reminder Service\"", NULL);
(void)fprintf(stderr,
"calendar: %s: %s.\n", _PATH_SENDMAIL, strerror(errno));
_exit(1);