blob: cf69f3eb0140831fe349eaf9a1994b242b440e4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/* chmod.c
Change the mode of a file. */
#include "uucp.h"
#include "uudefs.h"
#include "sysdep.h"
#include "system.h"
#include <errno.h>
/* Change the mode of a file. */
boolean
fsysdep_change_mode (zfile, imode)
const char *zfile;
unsigned int imode;
{
if (chmod ((char *) zfile, imode) < 0)
{
ulog (LOG_ERROR, "chmod (%s): %s", zfile, strerror (errno));
return FALSE;
}
return TRUE;
}
|