summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rwxr-xr-xurpmi.addmedia2
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 209d67e6..cb350b97 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- urpmi.addmedia
+ o do not allow "/" in media name (#44765)
+
Version 6.17 - 14 October 2008
- urpmi
diff --git a/urpmi.addmedia b/urpmi.addmedia
index 90c38a5e..a073c81c 100755
--- a/urpmi.addmedia
+++ b/urpmi.addmedia
@@ -164,7 +164,7 @@ if ($options{distrib}) {
quiet => $options{verbose} < 0,
callback => \&urpm::download::sync_logger);
} else {
- $name or usage();
+ $name && $name !~ m!/! or usage();
if ($with eq "with") {
$relative_synthesis or usage N("<relative path of synthesis> missing\n");