#ifndef lint
static const char rcsid[] =
- "$Id: dirs.c,v 1.33 2005/05/28 18:34:47 stelian Exp $";
+ "$Id: dirs.c,v 1.35 2008/04/17 15:16:47 stelian Exp $";
#endif /* not lint */
#include <config.h>
fprintf(stderr, "directory mode, owner, and times not set\n");
return;
}
- mf = fopen(modefile, "r");
+ mf = FOPEN(modefile, "r");
if (mf == NULL) {
warn("fopen");
fprintf(stderr, "cannot open mode file %s\n", modefile);
cp = myname(ep);
(void) chown(cp, node.uid, node.gid);
(void) chmod(cp, node.mode);
+ utimes(cp, node.timep);
+ if (node.xattr)
+ xattr_extract(cp, xattr);
+ ep->e_flags &= ~NEW;
if (node.flags)
#ifdef __linux__
(void) lsetflags(cp, node.flags);
(void) chflags(cp, node.flags);
#endif
#endif
- utimes(cp, node.timep);
- if (node.xattr)
- xattr_extract(cp, xattr);
- ep->e_flags &= ~NEW;
}
}
if (ferror(mf))
fprintf(stderr, "directory mode, owner, and times not set\n");
return;
}
- mf = fopen(modefile, "r");
+ mf = FOPEN(modefile, "r");
if (mf == NULL) {
warn("fopen");
fprintf(stderr, "cannot open mode file %s\n", modefile);