diff mbox

cifs.upcall: require a uid= or creduid= parm

Message ID 1280163930-983-1-git-send-email-jlayton@samba.org (mailing list archive)
State New, archived
Headers show

Commit Message

Jeff Layton July 26, 2010, 5:05 p.m. UTC
None
diff mbox

Patch

diff --git a/cifs.upcall.c b/cifs.upcall.c
index 1f4341d..8f7850a 100644
--- a/cifs.upcall.c
+++ b/cifs.upcall.c
@@ -707,6 +707,11 @@  int main(const int argc, char *const argv[])
 			goto out;
 		}
 		ccname = find_krb5_cc(CIFS_DEFAULT_KRB5_DIR, arg.uid);
+	} else {
+		/* no uid= or creduid= parm -- something is wrong */
+		syslog(LOG_ERR, "No uid= or creduid= parm specified");
+		rc = 1;
+		goto out;
 	}
 
 	host = arg.hostname;