summaryrefslogtreecommitdiffstats
path: root/source/lib/substitute.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed %U and %D substitutions. %U is lowercase user name, %D is uppercaseJeremy Allison2001-04-251-2/+12
| | | | | domain name. Jeremy.
* Got "medieval on our ass" about adding the -1 to slprintf.Jeremy Allison2001-04-081-1/+1
| | | | Jeremy.
* Patch to make automount lookup fallback to get home directory from getpwnam.Jeremy Allison2001-03-261-9/+15
| | | | | From Robert Montjoy <Rob_Montjoy@ECECS.UC.EDU>. Jeremy.
* include/vfs.h:Jeremy Allison2001-01-231-2/+3
| | | | | | | | | | | | | smbd/vfs-wrap.c: smbd/vfs.c: Added fchmod_acl and chmod_acl. lib/substitute.c: smbd/lanman.c: smbd/open.c: smbd/process.c: smbd/reply.c: smbd/service.c: Removed sessetup_user variable. Added current_user_info struct which conatins domain info etc. Added '%D' for client domain parameter. Jeremy.
* - fixed the %U macro so that the old (and documented) semantics workAndrew Tridgell2000-08-251-2/+13
| | | | | | | | | again. This got broken with one of the substitute.c updates a couple of months ago. - also fixed %u to return the username from the current_user structure when called via a method that does not have direct access to the username. I cache the uidtoname() result to prevent thrashing nss.
* do some standard_sub_advanced() in api_net_sam_logon on lp_logon_xxx().Jean-François Micouleau2000-06-091-1/+1
| | | | | | | and if you have unix realname=yes, you get the gecos name when locking the station. J.F.
* split the username in the vuser structure into a separateAndrew Tridgell2000-05-021-2/+2
| | | | | | | | userdom_struct. As the name implies this also contains a domain (unused at the moment). This will be important shortly, as operation in appliance mode needs the domain to be always carried with the username.
* Added sys_fork() and sys_getpid() functions to stop the overheadJeremy Allison2000-05-021-1/+1
| | | | | of doing a system call every time we want to just get our pid. Jeremy.
* Now that fsp's are created on successful file open, the structure memberJeremy Allison2000-04-241-1/+0
| | | | | | | | | | | | fsp->open is no longer needed (if an fsp pointer is valid, then it's open :-). NB for Luke, this patch also did not apply to TNG. TNG is not yet identical w.r.t file serving with HEAD. This makes it impossible for me to help maintain TNG. Please fix asap. lib/substitute.c: Removed unused variable (pidstr). Jeremy.
* split out standard_sub_basic() again to fix a bug where %p was beingAndrew Tridgell2000-04-231-14/+29
| | | | substituted in the loadparm code and thus leaving lpq with no printer
* - got rid of the "passive" optionAndrew Tridgell2000-04-191-70/+54
| | | | - cleaned up the standard_sub_*() calls a lot
* moved standard_sub() and friends into a separate moduleAndrew Tridgell2000-04-171-0/+295