diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-09-18 22:05:40 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-09-18 22:05:40 +0000 |
commit | 556fa0e4cb055e5b7d2889c1dc9f66e8bbc888b4 (patch) | |
tree | 5d4a73d45259a06031a4fb8ea28a67d35184385e /sys-apps/eject/files/eject-2.1.0-regcomp-check.patch | |
parent | merged upstream (diff) | |
download | gentoo-2-556fa0e4cb055e5b7d2889c1dc9f66e8bbc888b4.tar.gz gentoo-2-556fa0e4cb055e5b7d2889c1dc9f66e8bbc888b4.tar.bz2 gentoo-2-556fa0e4cb055e5b7d2889c1dc9f66e8bbc888b4.zip |
Version bump #106356 by Surakshan Mendis.
(Portage version: 2.0.52-r1 http://ronaldmcnightrider.ytmnd.com/ )
Diffstat (limited to 'sys-apps/eject/files/eject-2.1.0-regcomp-check.patch')
-rw-r--r-- | sys-apps/eject/files/eject-2.1.0-regcomp-check.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sys-apps/eject/files/eject-2.1.0-regcomp-check.patch b/sys-apps/eject/files/eject-2.1.0-regcomp-check.patch new file mode 100644 index 000000000000..3c225346caad --- /dev/null +++ b/sys-apps/eject/files/eject-2.1.0-regcomp-check.patch @@ -0,0 +1,18 @@ +Make sure the regcomp's work. + +http://bugs.gentoo.org/91977 + +--- eject.c ++++ eject.c +@@ -882,7 +882,10 @@ static char *MultiplePartitions(const ch + strcpy(pattern, "^/dev/"); + strcat(pattern, partitionDevice[i]); + strcat(pattern, "[a-z]([0-9]?[0-9])?$"); +- regcomp(&preg, pattern, REG_EXTENDED|REG_NOSUB); ++ if (regcomp(&preg, pattern, REG_EXTENDED|REG_NOSUB) != 0) { ++ perror(programName); ++ exit(1); ++ } + status = regexec(&preg, name, 1, 0, 0); + regfree(&preg); + if (status == 0) { |