buggnokii - Bugs: bug #42680, Device filename of symlink could...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #42680: Device filename of symlink could be only 32 bytes long

Submitter:  MihanEntalpo <mihanentalpo>
Submitted:  Fri 04 Jul 2014 02:34:36 PM UTC
   
 
Category:  gnokii Severity:  3 - Normal
Item Group:  minor malfunction Status:  Wont Fix
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Sun 06 Jul 2014 10:33:40 AM UTC, comment #2: 

Thanks! The information message about "too long filename" would be enough. It's easy to make a symlink shorter than 32 bytes, the problem was in the strange undocumented behavior without any warnings.

MihanEntalpo <mihanentalpo>
Sun 06 Jul 2014 10:21:06 AM UTC, comment #1: 

Thank you for reporting this bug but at this point I don't think it's worth increasing the static buffer or making it dynamic.

Instead I added a check for too long parameters that will end gnokii with a hopefully more informative message, for example:
"""
Unsupported [phone_fake] port value "portnamelongerthanthirtyonebytes"
The given entry is too long.
"""

http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=d792885a884806e1c4034b63f79d29e7796d7a07

(Please ignore the change about "pcsc" which should have come in a separated commit for a different issue)

Daniele Forsi <dforsi>
Group administrator
Fri 04 Jul 2014 02:34:36 PM UTC, original submission:  

gnokii works well with device like /dev/ttyUSB0,
and, it also work well with symlinks to this devices, for example
/tmp/my_modem => /dev/ttyUSB0.
But, if the path of symlink is longer than 32 bytes, gnokii refuses to use the device, and says, that device file does not exists.

MihanEntalpo <mihanentalpo>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by dforsi (Posted a comment)
  • -email is unavailable- added by mihanentalpo (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-05-11 dforsi Open/ClosedOpen Closed
    2014-07-06 dforsi StatusNone Wont Fix

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code