summaryrefslogtreecommitdiff
path: root/lib/backupfile.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1993-10-09 20:43:31 +0000
committerJim Meyering <jim@meyering.net>1993-10-09 20:43:31 +0000
commit4ab2d8f53aa7198e41d0e4e0e94055dc1f6e31ba (patch)
tree9a9d6094ad686b9b8d12ccb61094fc29443e54d2 /lib/backupfile.c
parentae89477b9b3dae36445ef1fda2cc6f3746be0140 (diff)
downloadcoreutils-4ab2d8f53aa7198e41d0e4e0e94055dc1f6e31ba.tar.xz
merge with 3.8.3e
Diffstat (limited to 'lib/backupfile.c')
-rw-r--r--lib/backupfile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/backupfile.c b/lib/backupfile.c
index ddf3fa789..cb9442903 100644
--- a/lib/backupfile.c
+++ b/lib/backupfile.c
@@ -156,11 +156,11 @@ max_backup_version (file, dir)
int highest_version;
int this_version;
int file_name_length;
-
+
dirp = opendir (dir);
if (!dirp)
return 0;
-
+
highest_version = 0;
file_name_length = strlen (file);
@@ -168,7 +168,7 @@ max_backup_version (file, dir)
{
if (!REAL_DIR_ENTRY (dp) || NLENGTH (dp) <= file_name_length)
continue;
-
+
this_version = version_number (file, dp->d_name, file_name_length);
if (this_version > highest_version)
highest_version = this_version;
@@ -207,7 +207,7 @@ version_number (base, backup, base_length)
{
int version;
char *p;
-
+
version = 0;
if (!strncmp (base, backup, base_length) && ISDIGIT (backup[base_length]))
{