Re: smbmount problem?

From: Czako Krisztian (slapicat_private)
Date: Tue Apr 21 1998 - 13:57:11 PDT

  • Next message: Zacharopoulos Dimitris: "Re: NT configuration caution"

    On Tue, Apr 21, 1998 at 12:05:43PM +0100, Chris Evans wrote:
    
    > # export USER=`perl -e 'print "A" x 10000'`
    > # /usr/sbin/smbmount //a/b /
    > Segmentation fault
    
    Maybe I'm doing something wrong, but:
    slapic@orion:~$ export USER=`perl -e 'print "A" x 10000'`
    slapic@orion:~$ smbmount //orion/slapic orion/
    Username too long: AAAAAAAAAAAAAAAAAA... etc...
    
    -rwsr-sr-x   1 root     root        10556 Mar 27 04:42 /usr/bin/smbmount
    
    smbmount Version 2.0.2
    
    Debian hamm,
    ii  smbfs           2.0.2-5        Mount and umount commands for the smbfs.
    
    in line 530 of smbmount.c:
           if (getenv("USER")) {
                    char *user = getenv("USER");
                    if (strlen(user) >= sizeof(data.username)) {
                            fprintf(stderr, "Username too long: %s\n", user);
                            exit(1);
                    }
    
    So I think it's corrected.
    
    Regards,
    Slapic
    
    --
    PGP 0x96A9B35D / 37 93 43 2A 81 5C B3 0D  CD C4 94 F8 FA D4 AD C5
    To get my key: mail slapicat_private -s "PGPKEY" < /dev/null
    



    This archive was generated by hypermail 2b30 : Fri Apr 13 2001 - 13:50:30 PDT