summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
AgeCommit message (Collapse)Author
2004-09-27cvsd_recvmsg() is supposed to return 1 when a message has been read.Jean-Francois Brousseau
2004-09-27Plug all of the remaining memory leaks using my new Plug-O-Matic 2000(C)Jean-Francois Brousseau
2004-09-27Plug two of the huge leaks that Joris Vink has reported. rcs_freedelta()Jean-Francois Brousseau
didn't free the RCSNUMs associated with the delta version and next one
2004-09-27Rename some variables to match the general format, and avoid exportingJean-Francois Brousseau
variables that aren't needed
2004-09-27use the real lenght to zero out the buffer inJoris Vink
cvs_buf_alloc(); ok jfb@
2004-09-27Add the `user' and `group' keywords in the configuration file format, soJean-Francois Brousseau
we can specify alternate users under which the children should run
2004-09-27Simplify signal handling by having only one handler that sets the properJean-Francois Brousseau
variables, and add support for reporting via SIGINFO. Also add a way to change the user and group for privilege separation of the children.
2004-09-25Change the cvsd_recvmsg() API so that it returns 1 when a message wasJean-Francois Brousseau
read, 0 if the other end closed the message socket, and -1 on failure.
2004-09-25Most of the code to handle SIGCHLD and spawn new children wheneverJean-Francois Brousseau
one dies. Also fix cvsd_set() by making a copy of the string passed as argument.
2004-09-25- check return values for rcsnum_alloc()Joris Vink
- fix crash when parsing an RCS file and the "branch" keyword was found - allow '-' and '_' characters in rcs_gettok() (used in symbollists for ex.)
2004-09-24Before attempting to unlink() the local socket, set the effectiveJean-Francois Brousseau
UID to 0 so we have the appropriate permissions to perform the operation
2004-09-24When creating the local socket, set the group to the server's group IDJean-Francois Brousseau
2004-09-24Add a `-h' option to print the usage and exit with status 0 and fixJean-Francois Brousseau
usage() indentation
2004-09-23Lower the level of an error messageJean-Francois Brousseau
2004-09-23print error messages when we receive the `error' responseJean-Francois Brousseau
2004-09-16check value of strdup(3) calls;Joris Vink
ok jfb
2004-08-31use the correct Entries path to store in cef_path;Joris Vink
ok jfb
2004-08-31Do not crash when there is no user specified in the CVSROOT. SimplifiedJean-Francois Brousseau
version of a diff by Joris Vink.
2004-08-31check return value of strdup(3);Joris Vink
ok jfb
2004-08-27Add CF_NOSYMS to the flags so we skip symbolic linksJean-Francois Brousseau
2004-08-27Instead of keeping an open pointer to the Entries file when opening withJean-Francois Brousseau
write access, close it and reopen it only on demand, since large trees can contain enough Entries files to generate a 'Too many open files'. Problem spotted by Todd Fries.
2004-08-27Unbreak when running into files with an inode of 0Jean-Francois Brousseau
2004-08-27cleanup and reset the valid requests array when allocating a new rootJean-Francois Brousseau
structure. Also enable the use of at least Valid-responses and valid-requests
2004-08-27When the remote version string points to NULL, print "(unknown)" likeJean-Francois Brousseau
GNU CVS does
2004-08-27Skip directory entries which have a file number of 0Jean-Francois Brousseau
2004-08-27Do not attempt to free directory information on error cases inJean-Francois Brousseau
cvs_file_getdir(). That information will get freed anyways by cvs_file_free(). Fixes a double free found by Todd Fries.
2004-08-27Fix two descriptor leaksJean-Francois Brousseau
2004-08-16Make the README file a little more informative and explain how to installJean-Francois Brousseau
the software on OpenBSD systems.
2004-08-13Cleanup the code, will need reworkJean-Francois Brousseau
2004-08-13More unused variablesJean-Francois Brousseau
2004-08-13Remove unused variablesJean-Francois Brousseau
2004-08-13* add an entry for directories when we create themJean-Francois Brousseau
* when writing a directory entry, skip the revision and timestamp
2004-08-13Sample server config fileJean-Francois Brousseau
2004-08-13Make add work in client modeJean-Francois Brousseau
2004-08-13When the mtime is (time_t)-1, print the dummy timestamp string insteadJean-Francois Brousseau
of a bogus date
2004-08-13Handle RFC822 and ctime(3) style timestampsJean-Francois Brousseau
2004-08-13Ditch the 'ce_timestamp' field in favor of 'ce_mtime', which keepsJean-Francois Brousseau
the timestamp in time_t instead of a string
2004-08-13Assume the parent's Entries file is always opened when receiving a newJean-Francois Brousseau
entry to add, and move to using the `ce_mtime' field of the entry so we don't end up adding data from a local variable that was discarded
2004-08-13When comparing a file's timestamp against the one found in the EntriesJean-Francois Brousseau
file, do a straight compare between the time_t's instead of generating asctime()-style strings and doing strcmp(), and make sure that we have a repository string if we create the directory, so the file gets created when calling cvs_mkadmin()
2004-08-13Leave stderr alone for the momentJean-Francois Brousseau
2004-08-13Add a macro for dummy timestamp stringsJean-Francois Brousseau
2004-08-13Add cvs_datesec() to calculate the time_t value corresponding to aJean-Francois Brousseau
ctime(3)-style date string
2004-08-12If we create a directory with cvs_file_create(), keep a pointer to theJean-Francois Brousseau
newly created Entries file in the directory data
2004-08-12Add error checking and move the protocol calls so we only send them ifJean-Francois Brousseau
the cvs server is remote
2004-08-12Unused variableJean-Francois Brousseau
2004-08-12Make `init' work in client modeJean-Francois Brousseau
2004-08-12Don't attempt to send the `Root' request if the operation is an `init'Jean-Francois Brousseau
2004-08-12UpdateJean-Francois Brousseau
2004-08-12Fix handling of unknown directoriesJean-Francois Brousseau
2004-08-12Implement cvs_file_getspec() so we can finally deal with explicit fileJean-Francois Brousseau
arguments on the command-line, and fix a bunch of minor issues