Here is the code extracted from Puppy 4.3.1JP.drblock2 wrote:2. Pnethood still has the bug inherited from Quirky 1 and Puppy 4.3.1. Unprotected network drives will not open unless something (any character at all) is typed into the log-in and password boxes.
/usr/local/apps/pnethood/func_mount
Code: Select all
# diff func_mount.old func_mount
1a2
> # 2sep09 by Masaki Shinomiya <shino@pos.to> allow username and pssword to be blank
23a25,26
> USER_PASS="guest"
> [ "$USERNAME" != "" ] && USER_PASS="username=${USERNAME},password=${PASSWORD}"
28c31
< mount-FULL -t cifs "//${IP}/${SHARE}" "${MOUNTPOINT}" -o "${SERVERNETBIOSNAME}username=${USERNAME},password=${PASSWORD},iocharset=utf8" 2>>${TMP}log
---
> mount-FULL -t cifs "//${IP}/${SHARE}" "${MOUNTPOINT}" -o "${SERVERNETBIOSNAME}$USER_PASS,iocharset=utf8" 2>>${TMP}log
34c37
< smbmount "//${IP}/${SHARE}" "${MOUNTPOINT}" -o "username=${USERNAME},password=${PASSWORD}" 2>>${TMP}log >>/dev/null # redirecting stdout needed to lose init_iconv encoding conversion error messages
---
> smbmount "//${IP}/${SHARE}" "${MOUNTPOINT}" -o "$USER_PASS" 2>>${TMP}log >>/dev/null # redirecting stdout needed to lose init_iconv encoding conversion error messages