1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r25498: Remove checks that are always true.

This commit is contained in:
Jelmer Vernooij 2007-10-03 22:23:37 +00:00 committed by Gerald (Jerry) Carter
parent d980ee5040
commit 2f2bdfa0df

View File

@ -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" */ /* 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()); pstrcpy(dirname,lp_utmpdir());
trim_char(dirname,'\0','/'); trim_char(dirname,'\0','/');
} }
/* If explicit directory above, use it */ /* If explicit directory above, use it */
if (dirname != 0 && strlen(dirname) != 0) { if (strlen(dirname) != 0) {
pstrcpy(fname, dirname); pstrcpy(fname, dirname);
pstrcat(fname, "/"); pstrcat(fname, "/");
pstrcat(fname, uw_name); pstrcat(fname, uw_name);