mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
r25498: Remove checks that are always true.
(This used to be commit 2f2bdfa0df758104a9a2fcafe49d6215d8753536)
This commit is contained in:
parent
30e4012396
commit
bb9f1e5146
@ -220,13 +220,13 @@ static void uw_pathname(pstring fname, const char *uw_name, const char *uw_defau
|
||||
}
|
||||
|
||||
/* For u-files and non-explicit w-dir, look for "utmp dir" */
|
||||
if (dirname == 0 || strlen(dirname) == 0) {
|
||||
if (strlen(dirname) == 0) {
|
||||
pstrcpy(dirname,lp_utmpdir());
|
||||
trim_char(dirname,'\0','/');
|
||||
}
|
||||
|
||||
/* If explicit directory above, use it */
|
||||
if (dirname != 0 && strlen(dirname) != 0) {
|
||||
if (strlen(dirname) != 0) {
|
||||
pstrcpy(fname, dirname);
|
||||
pstrcat(fname, "/");
|
||||
pstrcat(fname, uw_name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user