projects
/
chise
/
xemacs-chise.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(MIN_CHAR_OBS_94x94): New macro.
[chise/xemacs-chise.git]
/
lib-src
/
movemail.c
diff --git
a/lib-src/movemail.c
b/lib-src/movemail.c
index
ac257d9
..
19793a3
100644
(file)
--- a/
lib-src/movemail.c
+++ b/
lib-src/movemail.c
@@
-55,14
+55,17
@@
Boston, MA 02111-1307, USA. */
*/
#define NO_SHORTNAMES /* Tell config not to load remap.h */
*/
#define NO_SHORTNAMES /* Tell config not to load remap.h */
+#define DONT_ENCAPSULATE
#include <../src/config.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <../src/config.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <sys/file.h>
#include <stdio.h>
#include <errno.h>
#include <stdio.h>
#include <errno.h>
+#include "../src/sysfile.h"
#include "../src/syswait.h"
#include "../src/syswait.h"
+#ifndef WINDOWSNT
#include "../src/systime.h"
#include "../src/systime.h"
+#endif
#include <stdlib.h>
#include <string.h>
#include "getopt.h"
#include <stdlib.h>
#include <string.h>
#include "getopt.h"
@@
-75,7
+78,7
@@
extern char *optarg;
extern int optind, opterr;
#ifndef HAVE_STRERROR
extern int optind, opterr;
#ifndef HAVE_STRERROR
-static char * strerror (int errnum);
+char * strerror (int errnum);
#endif /* HAVE_STRERROR */
#ifdef MSDOS
#endif /* HAVE_STRERROR */
#ifdef MSDOS
@@
-305,7
+308,9
@@
main (int argc, char *argv[])
exit (retcode);
}
exit (retcode);
}
+#ifndef WINDOWSNT
setuid (getuid ());
setuid (getuid ());
+#endif
#endif /* MAIL_USE_POP */
#ifndef DISABLE_DIRECT_ACCESS
#endif /* MAIL_USE_POP */
#ifndef DISABLE_DIRECT_ACCESS
@@
-632,7
+637,7
@@
popmail (char *user, char *outfile, char *password)
error ("Error in open: %s, %s", strerror (errno), outfile);
return (1);
}
error ("Error in open: %s, %s", strerror (errno), outfile);
return (1);
}
-#ifndef __CYGWIN32__
+#if !defined(__CYGWIN32__) && !defined(WINDOWSNT)
fchown (mbfi, getuid (), -1);
#endif
fchown (mbfi, getuid (), -1);
#endif
@@
-873,7
+878,7
@@
compile_regex (char* pattern)
#endif /* MAIL_USE_POP */
\f
#ifndef HAVE_STRERROR
#endif /* MAIL_USE_POP */
\f
#ifndef HAVE_STRERROR
-static char *
+char *
strerror (int errnum)
{
extern char *sys_errlist[];
strerror (int errnum)
{
extern char *sys_errlist[];