LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File wvdial-1.56-chat.patch of Package wvdial (Project home:dsterba:tools)

diff -Naur wvdial-1.56.org/wvdial.cc wvdial-1.56/wvdial.cc
--- wvdial-1.56.org/wvdial.cc	2007-07-20 18:29:27.000000000 +0200
+++ wvdial-1.56/wvdial.cc	2007-07-20 18:30:51.000000000 +0200
@@ -126,7 +126,7 @@
     args.add_set_bool_option('c', "chat",
 			     "used when running wvdial from pppd", chat_mode);
     args.add_reset_bool_option('n', "no-syslog",
-			       "don't send output to SYSLOG", chat_mode);
+			       "don't send output to SYSLOG", write_syslog);
     args.add_optional_arg("SECTION", true);
     args.add_optional_arg("OPTION=value", true);
 
diff -Naur wvdial-1.56.org/wvdialer.cc wvdial-1.56/wvdialer.cc
--- wvdial-1.56.org/wvdialer.cc	2007-08-09 17:51:24.374949000 +0200
+++ wvdial-1.56/wvdialer.cc	2007-08-09 17:51:37.474830000 +0200
@@ -1161,7 +1161,7 @@
     
     // open a pipe to pass password to pppd
     WvString buffer2;
-    if (!options.password) 
+    if (options.password.len()) 
     {
 	if( pipe( pppd_passwdfd ) == -1 ) 
 	{