int ret_code;
/* return if no file to keep */
-#if SUPPORT_LINKS
- ret_code = do_lstat(fname, &st);
-#else
- ret_code = do_stat(fname, &st);
-#endif
- if (ret_code < 0)
+ if (do_lstat(fname, &st) < 0)
return 1;
if (!(file = make_file(fname, NULL, NO_EXCLUDES)))
struct tm *mt;
char datebuf[50];
char linkbuf[4096];
- int ret;
-
-#if SUPPORT_LINKS
- ret = do_lstat(fname, &buf);
-#else
- ret = do_stat(fname, &buf);
-#endif
- if (ret < 0)
+
+ if (do_lstat(fname, &buf) < 0)
failed("stat", fname);
/* The size of anything but a regular file is probably not
dir = partial_fname;
if (create) {
STRUCT_STAT st;
-#if SUPPORT_LINKS
int statret = do_lstat(dir, &st);
-#else
- int statret = do_stat(dir, &st);
-#endif
if (statret == 0 && !S_ISDIR(st.st_mode)) {
if (do_unlink(dir) < 0)
return 0;