search for: login_setumask

Displaying 2 results from an estimated 2 matches for "login_setumask".

2013 Mar 13
1
[patch] Incorrect umask in FreeBSD
...BSD treats the umask differently from other login settings: unless running with the target user's UID, it will only apply the value from /etc/login.conf, not that from the user's ~/.login.conf. The patch below addresses this (although not in the most efficient manner, which would be to add LOGIN_SETUMASK to the LOGIN_SETUSER call). It is harmless on systems (such as OpenBSD) which have login classes but do not share this particular idiosyncrasy with FreeBSD. ------------------------------------------------------------------------ r248231 | des | 2013-03-13 10:41:55 +0100 (Wed, 13 Mar 2013) | 8 li...
2000 Feb 27
0
[PATCH] Fix login.conf, expiration, BSD compatibility in OpenSSH
...tlogin(pw->pw_name) < 0) error("setlogin failed: %s", strerror(errno)); @@ -2405,12 +2490,42 @@ switch, so we let login(1) to this for us. */ if (!options.use_login) { #ifdef LOGIN_CAP - if (setclasscontext(pw->pw_class, LOGIN_SETPRIORITY | - LOGIN_SETRESOURCES | LOGIN_SETUMASK) == -1) { - perror("setclasscontext"); - exit(1); - } -#endif /* LOGIN_CAP */ + char **tmpenv; + + /* Initialize temp environment */ + envsize = 64; + env = xmalloc(envsize * sizeof(char *)); + env[0] = NULL; + + child_set_env(&env, &envsize, "PATH", +...