aboutsummaryrefslogtreecommitdiffstats
path: root/backup.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2005-01-19 19:30:29 +0000
committerWayne Davison <wayned@samba.org>2005-01-19 19:30:29 +0000
commit018b28328c7ac0f4f99739d7dff13aa2f32b853d (patch)
treee05cc636b6c2fee7349caee929017baeb64b0790 /backup.c
parent0957a7463e6a69e75b52dacdb0455fbf7a01268c (diff)
downloadandroid_external_rsync-018b28328c7ac0f4f99739d7dff13aa2f32b853d.tar.gz
android_external_rsync-018b28328c7ac0f4f99739d7dff13aa2f32b853d.tar.bz2
android_external_rsync-018b28328c7ac0f4f99739d7dff13aa2f32b853d.zip
No need for conditional code around do_lstat() anymore.
Diffstat (limited to 'backup.c')
-rw-r--r--backup.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/backup.c b/backup.c
index 0dd4c561..c909a940 100644
--- 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 */
-#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)))