G'day Adam/all,
On Wed, 29 Apr 2020 12:43:42 -0500 Adam Thompson wrote:
> When I use co(1) with "-l" to check out a file (and/or "ci -l") is
> there any way to preserve file ownership and *not* have it reset to
> the user running co(1) or ci(1)?
Attached is a script I've used for years to work around this issue.
No licence, do what you want with it.
Rather rubbish to do this in the shell....
cop = check out, permissions
cip = check in, permissions
$ ls -ltrhF /usr/local/bin/c* | fgrep ciop
-r-xr-xr-x 1 root bin 1.8K Jun 29 2013 /usr/local/bin/ciop*
lrwxr-xr-x 1 root wheel 4B Apr 13 2015 /usr/local/bin/cop@ -> ciop
lrwxr-xr-x 1 root wheel 4B Apr 13 2015 /usr/local/bin/cip@ -> ciop
Cheers,
--
Craig Skinner | http://linkd.in/yGqkv7
No comments:
Post a Comment