[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Issue 1541 - Final [Patch] for svnadmin create --owner --group?

From: John Peacock <jpeacock_at_rowman.com>
Date: 2003-11-10 03:10:55 CET

I have attached another iteration of my --owner --group feature to the issue:

        http://subversion.tigris.org/issues/show_bug.cgi?id=1541

This version checks for root and warns if it is missing (and skips all of the
setuid/setgid/chown code), rather than throwing an error. I decided against
using apr_dir_make_recursive() instead of a mkdir(), since it would greatly
complicate the code.

The log entry is after my sig (same as the one attached to the issue).

Thanks

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747
Log
[[[
Implement two new options to the 'svnadmin create' command to explicitely
create a new repository with rights appropriate for either
1) exclusive access by a single user/process
2) shared access by all members of an existing system group
This is likely to only be relevant to Unix-like operating systems,
where chmod(), setgid(), and setuid() are meaningful.
* configure.in
     Add tests to check for existance of chmod, setgid, and setuid
* subversion/svnadmin/main.c
     (#include) - need svn_private_config.h in order to get autoconf #define's
     (enum),(options_table),(cmd_table): add owner_id, group_id to option tables
     (subcommand_create): Add logic to get system UID and GID and switch
     current process to those values before calling svn_repos_create()
     Create empty top level repository directory first and change ownership
* doc/book/book/ch05.xml
     (svn-ch-5-sect-2): Add paragraph and link to discussion of --owner and
     --group options in svn-ch-5-sect-5.
     (svn-ch-5-sect-5): Document the use of --owner and --group to create
     the repository with specific rights for limited repository access.
]]]
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Nov 10 03:11:14 2003

This is an archived mail posted to the Subversion Dev mailing list.