freebsd-ports/net/linneighborhood/files/patch-io.c
Tilman Keskinoz 5bb835f439 Add LinNeighborhood, a GTK SMB LANbrowser
PR:		50953
Submitted by:	Heiner Eichmann <h.eichmann@gmx.de>
2003-04-16 11:44:55 +00:00

18 lines
667 B
C

--- src/io.c.orig Fri Apr 11 16:58:15 2003
+++ src/io.c Fri Apr 11 17:03:11 2003
@@ -130,12 +130,12 @@
/* save only 'not root' mounts -> plain password */
if ( (mount != NULL) && (mount->type != mem_mount_root) )
{
- string_ncopy(str, pref.v.smbmount_exe, MAXMACHNAMEL+MAXSHRNAMEL+PATH_LEN+19);
+ *str = 0;
temp = str;
- temp += strlen(str);
merge_mount(&temp, mount, MAXMACHNAMEL+MAXSHRNAMEL+PATH_LEN+19 - strlen(str), 1);
string_ncat(str, "\n", MAXMACHNAMEL+MAXSHRNAMEL+PATH_LEN+19);
- fwrite(str, 1, strlen(str), fd);
+ if (*temp == ' ') ++temp;
+ fwrite(temp, 1, strlen(temp), fd);
}
}
}