summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/sync.h
diff options
context:
space:
mode:
authorCedric Staniewski <cedric@gmx.ca>2009-06-09 21:33:12 +0200
committerDan McGee <dan@archlinux.org>2009-07-27 06:29:55 +0200
commitfb97d325a5f83cea36050472097e06c28bc2964f (patch)
treeff753e9e4622e2f4072dc6ccc3c2e5d977b8d2d6 /lib/libalpm/sync.h
parent2013d062668e511289df50315bed33534ad71240 (diff)
downloadpacman-fb97d325a5f83cea36050472097e06c28bc2964f.tar.gz
pacman-fb97d325a5f83cea36050472097e06c28bc2964f.tar.xz
Do not allow pkgnames to start with a hyphen
Commandline arguments starting with a hyphen are usually recognized as options by unix tools. Therefore, allowing hyphens at the beginning of a package name requires a different handling of pkgnames as suggested by rm's manpage. It would be possible to make the scripts 'hyphen-safe', but hyphen-prefixed packages will cause trouble for pacman users which do not know these tricks. Signed-off-by: Cedric Staniewski <cedric@gmx.ca> [Dan: remove the repo-add check] Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/sync.h')
0 files changed, 0 insertions, 0 deletions