… | |
… | |
79 | #include <uudeview.h> |
79 | #include <uudeview.h> |
80 | #include <uuint.h> |
80 | #include <uuint.h> |
81 | #include <fptools.h> |
81 | #include <fptools.h> |
82 | #include <uustring.h> |
82 | #include <uustring.h> |
83 | |
83 | |
84 | char * uulib_id = "$Id: uulib.c,v 1.3 2001/06/12 03:20:45 root Exp $"; |
84 | char * uulib_id = "$Id: uulib.c,v 1.4 2001/06/12 09:56:11 root Exp $"; |
85 | |
85 | |
86 | #ifdef SYSTEM_WINDLL |
86 | #ifdef SYSTEM_WINDLL |
87 | BOOL _export WINAPI |
87 | BOOL _export WINAPI |
88 | DllEntryPoint (HINSTANCE hInstance, DWORD seginfo, |
88 | DllEntryPoint (HINSTANCE hInstance, DWORD seginfo, |
89 | LPVOID lpCmdLine) |
89 | LPVOID lpCmdLine) |
… | |
… | |
946 | { |
946 | { |
947 | mode_t mask = 0000; /* there is a slight window here anyway */ |
947 | mode_t mask = 0000; /* there is a slight window here anyway */ |
948 | #if HAVE_UMASK |
948 | #if HAVE_UMASK |
949 | mask = umask (0022); umask (mask); |
949 | mask = umask (0022); umask (mask); |
950 | #endif |
950 | #endif |
|
|
951 | fclose (source); |
951 | #if HAVE_CHMOD |
952 | #if HAVE_CHMOD |
952 | chmod (uugen_fnbuffer, thefile->mode & ~mask); |
953 | chmod (uugen_fnbuffer, thefile->mode & ~mask); |
953 | #endif |
954 | #endif |
954 | goto skip_copy; |
955 | goto skip_copy; |
955 | } |
956 | } |