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

Submitted by:  MihanEntalpo <mihanentalpo>
Submitted on:  Fri 04 Jul 2014 02:34:36 PM UTC  
 
Category: gnokiiSeverity: 3 - Normal
Item Group: minor malfunctionStatus: Wont Fix
Privacy: PublicAssigned 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>
Project 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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 11 May 2015 05:42:56 PM UTCdforsiOpen/ClosedOpen=>Closed
    Sun 06 Jul 2014 10:21:06 AM UTCdforsiStatusNone=>Wont Fix

    Back to the top


    Powered by Savane 3.1-cleanup1