1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/net/cvsup-mirror
John Polstra 7fc792b6a6 Fix two bugs in scripts.
1. If update.sh failed to determine the PREFIX, it didn't realize it
had failed.  This is arguably caused by a shell bug in processing
the statement

    export PREFIX=$(expr $0 : "\(/.*\)/etc/cvsup/update\.sh\$")

This statement always succeeds even if the "expr" command fails.
Moving the "export" to a separate statement makes it work.

2. If the system had no "/home" directory, the pkg-install script
would create it with mode 0700, making ~cvsupin inaccessible to its
owner.  A user ran into this bug when installing cvsup-mirror into a
jail.
2004-08-05 23:37:47 +00:00
..
files Fix two bugs in scripts. 2004-08-05 23:37:47 +00:00
scripts
Makefile Fix two bugs in scripts. 2004-08-05 23:37:47 +00:00
pkg-deinstall
pkg-descr
pkg-install Fix two bugs in scripts. 2004-08-05 23:37:47 +00:00
pkg-plist