No need for conditional code around do_lstat() anymore.
authorWayne Davison <wayned@samba.org>
Wed, 19 Jan 2005 19:30:29 +0000 (19:30 +0000)
committerWayne Davison <wayned@samba.org>
Wed, 19 Jan 2005 19:30:29 +0000 (19:30 +0000)
backup.c
tls.c
util.c

index 0dd4c56..c909a94 100644 (file)
--- a/backup.c
+++ b/backup.c
@@ -162,12 +162,7 @@ static int keep_backup(char *fname)
        int ret_code;
 
        /* return if no file to keep */
        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)))
                return 1;
 
        if (!(file = make_file(fname, NULL, NO_EXCLUDES)))
diff --git a/tls.c b/tls.c
index 80d20c8..6c0466f 100644 (file)
--- a/tls.c
+++ b/tls.c
@@ -65,14 +65,8 @@ static void list_file(const char *fname)
        struct tm *mt;
        char datebuf[50];
        char linkbuf[4096];
        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
                failed("stat", fname);
 
        /* The size of anything but a regular file is probably not
diff --git a/util.c b/util.c
index 4f1b59a..99a3a5d 100644 (file)
--- a/util.c
+++ b/util.c
@@ -990,11 +990,7 @@ int handle_partial_dir(const char *fname, int create)
        dir = partial_fname;
        if (create) {
                STRUCT_STAT st;
        dir = partial_fname;
        if (create) {
                STRUCT_STAT st;
-#if SUPPORT_LINKS
                int statret = do_lstat(dir, &st);
                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;
                if (statret == 0 && !S_ISDIR(st.st_mode)) {
                        if (do_unlink(dir) < 0)
                                return 0;