Bug 9676

Summary: Не распознаётся переменная окружения SCMXX_TTY
Product: Sisyphus Reporter: Fr. Br. George <george>
Component: scmxxAssignee: Nobody's working on this, feel free to take it <nobody>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P2    
Version: unstable   
Hardware: all   
OS: Linux   

Description Fr. Br. George 2006-06-05 19:24:38 MSD
В man-е описана переменная окружения SCMXX_TTY, которая делает то же, что и ключ
-d. Раньше она действительно воспринималась. Сейчас -- нет. Проблема в
самодельной системе разбора параметров. Патч прилагается:
========8<=============================================
diff -ur scmxx-0.9.0/src/scmxx/scmxx_opt.c scmxx-0.9.0.new/src/scmxx/scmxx_opt.c
--- scmxx-0.9.0/src/scmxx/scmxx_opt.c   2006-02-06 21:00:19 +0300
+++ scmxx-0.9.0.new/src/scmxx/scmxx_opt.c       2006-06-05 19:17:30 +0400
@@ -214,10 +214,10 @@
 struct args_def args_list[] = {
   {"baud",'b',"SCMXX_BAUD",ARGS_PARAM_REQ,_("rate"),0,
    _("specify another than the compiled in baudrate")},
-  {"binary",'N',NULL,ARGS_PARAM_NONE,NULL,2,
-   _("binary file transfer")},
   {"device",'d',"SCMXX_TTY",ARGS_PARAM_REQ,_("device"),0,
    _("specify another than the compiled in device")},
+  {"binary",'N',NULL,ARGS_PARAM_NONE,NULL,2,
+   _("binary file transfer")},
   {"device-timeout",0,NULL,ARGS_PARAM_REQ,_("seconds"),0,
    _("return after this time if there is no answer")},
   {"dial",0,NULL,ARGS_PARAM_NONE,NULL,1,
========>8===================================================
Steps to Reproduce:
$ echo $SCMXX_TTY && scmxx --info
/dev/ttyS0
Using "KOI8-R" as system character set.
Accessing device /dev/ircomm1...done

$ echo $SCMXX_TTY && scmxx --info -d $SCMXX_TTY 
/dev/ttyS0
Using "KOI8-R" as system character set.
Accessing device /dev/ttyS0...done
OK, a modem device is present.

Actual Results:  
Accessing device /dev/ircomm1...done

Expected Results:  
Accessing device /dev/ttyS0...done
Comment 1 Valery Inozemtsev 2006-06-07 17:29:27 MSD
исправлено в 0.9.0-alt2
Comment 2 Fr. Br. George 2006-09-12 20:15:27 MSD
(In reply to comment #1)
> исправлено в 0.9.0-alt2

Я написал в upstream, он там поправил в своём CVS-е. возможно, в новой версии
патч отвалится.