summaryrefslogtreecommitdiffstats
path: root/contrib/patch/backupfile.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1998-01-04 20:25:29 +0000
committerache <ache@FreeBSD.org>1998-01-04 20:25:29 +0000
commit438e7809d9a5e4652a1c25b8bb102ed3dfc83e40 (patch)
treeb510a25e5213b4bf7f0564a778758ba21b5ea77a /contrib/patch/backupfile.c
parent4b6324645f7223db0870236240d6e99eb4cda757 (diff)
downloadFreeBSD-src-438e7809d9a5e4652a1c25b8bb102ed3dfc83e40.zip
FreeBSD-src-438e7809d9a5e4652a1c25b8bb102ed3dfc83e40.tar.gz
Raw import of patch 2.5
Diffstat (limited to 'contrib/patch/backupfile.c')
-rw-r--r--contrib/patch/backupfile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/patch/backupfile.c b/contrib/patch/backupfile.c
index 3b91be0..4b0f2ec 100644
--- a/contrib/patch/backupfile.c
+++ b/contrib/patch/backupfile.c
@@ -109,7 +109,8 @@ static int version_number __BACKUPFILE_P ((const char *, const char *, size_t));
/* Return the name of the new backup file for file FILE,
allocated with malloc. Return 0 if out of memory.
- FILE must not end with a '/' unless it is the root directory. */
+ FILE must not end with a '/' unless it is the root directory.
+ Do not call this function if backup_type == none. */
char *
find_backup_file_name (file)
@@ -132,7 +133,7 @@ find_backup_file_name (file)
strcpy (s, file);
#if HAVE_DIR
- if (backup_type != simple && backup_type != none)
+ if (backup_type != simple)
{
int highest_backup;
size_t dir_len = base_name (s) - s;
OpenPOWER on IntegriCloud