summaryrefslogtreecommitdiff
path: root/lib/filevercmp.h
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2009-03-20 11:20:12 +0100
committerJim Meyering <meyering@redhat.com>2009-03-24 21:46:37 +0100
commit1721cf06d9f23949a7a2ed6aec7615f8f5731be4 (patch)
treed54eceea892841f63a96976b5c346b9cdfb29092 /lib/filevercmp.h
parent99856e7f178837dc447a9931e6c86242f632fc06 (diff)
downloadgnulib-1721cf06d9f23949a7a2ed6aec7615f8f5731be4.tar.gz
filevercmp: handle simple~ and numbered.~3~ backup suffixes
* lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes. * tests/test-filevercmp.c: Add tests for backup suffixes. Reported by Sven Joachim.
Diffstat (limited to 'lib/filevercmp.h')
-rw-r--r--lib/filevercmp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/filevercmp.h b/lib/filevercmp.h
index 569b4d033f..f3d78f0cdc 100644
--- a/lib/filevercmp.h
+++ b/lib/filevercmp.h
@@ -1,7 +1,7 @@
/*
Copyright (C) 1995 Ian Jackson <iwj10@cus.cam.ac.uk>
Copyright (C) 2001 Anthony Towns <aj@azure.humbug.org.au>
- Copyright (C) 2008 Free Software Foundation, Inc.
+ Copyright (C) 2008-2009 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -32,7 +32,7 @@
It returns number >0 for S1 > S2, 0 for S1 == S2 and number <0 for S1 < S2.
This function compares strings, in a way that if VER1 and VER2 are version
- numbers and PREFIX and SUFFIX (SUFFIX defined as (\.[A-Za-z][A-Za-z0-9]*)*)
+ numbers and PREFIX and SUFFIX (SUFFIX defined as (\.[A-Za-z~][A-Za-z0-9~]*)*)
are strings then VER1 < VER2 implies filevercmp (PREFIX VER1 SUFFIX,
PREFIX VER2 SUFFIX) < 0.