mirror of
https://github.com/samba-team/samba.git
synced 2025-07-29 15:42:04 +03:00
added support for printing via smbwrapper
You can print using "cp filename /smb/SERVER/PRINTER/jobname"
You can list the current printqueue using ls
(This used to be commit 080fb61b69
)
This commit is contained in:
@ -4044,7 +4044,6 @@ BOOL process_exists(int pid)
|
||||
/*******************************************************************
|
||||
turn a uid into a user name
|
||||
********************************************************************/
|
||||
|
||||
char *uidtoname(uid_t uid)
|
||||
{
|
||||
static char name[40];
|
||||
@ -4054,6 +4053,7 @@ char *uidtoname(uid_t uid)
|
||||
return(name);
|
||||
}
|
||||
|
||||
|
||||
/*******************************************************************
|
||||
turn a gid into a group name
|
||||
********************************************************************/
|
||||
@ -4067,6 +4067,16 @@ char *gidtoname(gid_t gid)
|
||||
return(name);
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
turn a user name into a uid
|
||||
********************************************************************/
|
||||
uid_t nametouid(const char *name)
|
||||
{
|
||||
struct passwd *pass = getpwnam(name);
|
||||
if (pass) return(pass->pw_uid);
|
||||
return (uid_t)-1;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
something really nasty happened - panic!
|
||||
********************************************************************/
|
||||
|
Reference in New Issue
Block a user