Device name limited to 39 characters

Bug #978294 reported by Ryan Finnie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
digitemp (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Recent udev in Ubuntu includes nifty permanent mappings for serial devices; for example, my 1wire master shows up as /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A800bZvc-if00-port0. However, when I try to use this with digitemp:

$ sudo digitemp_DS9097U -w -s /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A800bZvc-if00-port0
DigiTemp v3.5.0 Copyright 1996-2007 by Brian C. Lane
GNU Public License v2.0 - http://www.digitemp.com
Error, serial port '/dev/serial/by-id/usb-FTDI_FT232R_USB_U' does not exists!

Attached is a patch bumping this limit from 39 (40 minus null) chars to 1023 (1024), fixing the problem:

$ sudo digitemp_DS9097U -w -s /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A800bZvc-if00-port0
DigiTemp v3.5.0 Copyright 1996-2007 by Brian C. Lane
GNU Public License v2.0 - http://www.digitemp.com
Turning off all DS2409 Couplers
..
Devices on the Main LAN
28D1483C0200002F : DS18B20 Temperature Sensor
010EBED512000046 : DS2401/DS1990A Serial Number iButton

I will be submitting this upstream as well.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: digitemp 3.5.0ds1-1
ProcVersionSignature: Ubuntu 3.2.0-22.35-generic 3.2.14
Uname: Linux 3.2.0-22-generic x86_64
ApportVersion: 2.0-0ubuntu4
Architecture: amd64
Date: Tue Apr 10 12:12:15 2012
InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Beta amd64 (20120229)
ProcEnviron:
 TERM=xterm
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: digitemp
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Ryan Finnie (fo0bar) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Change /dev max name length from 40 (39) chars to 1024 (1023)" of this bug report has been identified as being a patch in the form of a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-sponsors team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Martin Pitt (pitti) wrote :

I don't see the upstream forwarding on http://groups.google.com/group/digitemp?pli=1; would you mind putting the link here for tracking this? Thanks!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package digitemp - 3.5.0ds1-1ubuntu1

---------------
digitemp (3.5.0ds1-1ubuntu1) precise; urgency=low

  * Change /dev max name length from 40 (39) chars to 1024 (1023)
    (LP: #978294)
 -- Ryan Finnie <email address hidden> Tue, 10 Apr 2012 11:51:29 -0700

Changed in digitemp (Ubuntu):
status: New → Fix Released
Revision history for this message
Ryan Finnie (fo0bar) wrote :

I did not get around to posting to upstream-upstream yet, after noticing there was an updated release from 2008 that was not packaged in Debian. The net result of that is I will be adopting Debian-upstream (see http://bugs.debian.org/668334) and will shortly be reaching out to upstream-upstream in that capacity. :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.