summaryrefslogtreecommitdiff
path: root/lib-src/movemail.c
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1996-09-17 02:37:17 +0000
committerKarl Heuer <kwzh@gnu.org>1996-09-17 02:37:17 +0000
commite397a0172fe822eb80080184f5961a26916c9626 (patch)
treecf50a152e1a9a811b5ccbb14e266fb677f2637db /lib-src/movemail.c
parent7c5a1541f34c8eec8f5e1e7db66819cb6a23496a (diff)
downloademacs-e397a0172fe822eb80080184f5961a26916c9626.tar.gz
Replaced all BSD with BSD_SYSTEM.
Diffstat (limited to 'lib-src/movemail.c')
-rw-r--r--lib-src/movemail.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib-src/movemail.c b/lib-src/movemail.c
index 3739e01371d..80f6afd3616 100644
--- a/lib-src/movemail.c
+++ b/lib-src/movemail.c
@@ -310,13 +310,13 @@ main (argc, argv)
if (indesc < 0)
pfatal_with_name (inname);
-#if defined (BSD) || defined (XENIX)
+#if defined (BSD_SYSTEM) || defined (XENIX)
/* In case movemail is setuid to root, make sure the user can
read the output file. */
/* This is desirable for all systems
but I don't want to assume all have the umask system call */
umask (umask (0) & 0333);
-#endif /* BSD or Xenix */
+#endif /* BSD_SYSTEM || XENIX */
outdesc = open (outname, O_WRONLY | O_CREAT | O_EXCL, 0666);
if (outdesc < 0)
pfatal_with_name (outname);
@@ -354,7 +354,7 @@ main (argc, argv)
}
}
-#ifdef BSD
+#ifdef BSD_SYSTEM
if (fsync (outdesc) < 0)
pfatal_and_delete (outname);
#endif
@@ -588,7 +588,7 @@ popmail (user, outfile, password)
* directories have lost mail when over quota because these checks were
* not made in previous versions of movemail. */
-#ifdef BSD
+#ifdef BSD_SYSTEM
if (fsync (mbfi) < 0)
{
error ("Error in fsync: %s", strerror (errno));