mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Added 0644 to mkdir under linux
SVN revision: 1004
This commit is contained in:
parent
45b14979a8
commit
b807f1e0d4
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.421 2004/08/03 09:58:36 midas
|
||||||
|
Added 0644 to mkdir under linux
|
||||||
|
|
||||||
Revision 1.420 2004/08/03 09:49:04 midas
|
Revision 1.420 2004/08/03 09:49:04 midas
|
||||||
Added verbose output to cloning
|
Added verbose output to cloning
|
||||||
|
|
||||||
@ -20968,7 +20971,11 @@ int main(int argc, char *argv[])
|
|||||||
/* check for directories */
|
/* check for directories */
|
||||||
if (logbook_dir[0] && stat(logbook_dir, &finfo) < 0) {
|
if (logbook_dir[0] && stat(logbook_dir, &finfo) < 0) {
|
||||||
|
|
||||||
|
#ifdef OS_WINNT
|
||||||
if (mkdir(logbook_dir) == 0)
|
if (mkdir(logbook_dir) == 0)
|
||||||
|
#else
|
||||||
|
if (mkdir(logbook_dir, 0644) == 0)
|
||||||
|
#endif
|
||||||
eprintf("Logbook directory \"%s\" successfully created.\n", logbook_dir);
|
eprintf("Logbook directory \"%s\" successfully created.\n", logbook_dir);
|
||||||
else {
|
else {
|
||||||
eprintf("Cannot create logbook directory \"%s\":%s.\n", logbook_dir, strerror(errno));
|
eprintf("Cannot create logbook directory \"%s\":%s.\n", logbook_dir, strerror(errno));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user