Line
Link Here
|
0 |
-- arcsvc.c~ 2005-03-13 16:48:09.000000000 +0100 |
0 |
++ arcsvc.c 2005-09-17 09:41:51.000000000 +0200 |
Lines 17-22
Link Here
|
|
|
17 |
#include <sys/types.h> |
18 |
#include <sys/stat.h> |
19 |
#include <fcntl.h> |
Lines 52-58
openarc(chg) /* open archive */
Link Here
|
52 |
if (!(new = fopen(newname, OPEN_W))) |
55 |
int fd; |
|
|
56 |
|
57 |
if ((fd = open(newname, O_CREAT|O_EXCL|O_RDWR, S_IREAD|S_IWRITE)) == -1) |
58 |
arcdie("Cannot create archive copy: %s", newname); |
59 |
|
60 |
if (!(new = fdopen(fd, OPEN_W))) |