Bug #352

oneuser, password from file includes \n

Added by Daniel Molina almost 11 years ago. Updated over 10 years ago.

Status:ClosedStart date:09/17/2010
Priority:NormalDue date:
Assignee:Ruben S. Montero% Done:

100%

Category:Core & System
Target version:Release 2.0
Resolution:fixed Pull request:
Affected Versions:

Description

The commands
$ oneuser create ...
$ oneuser passwd ...
can take the password from a file.

The problem is that \n characters are included also.

➜ cat test
testint
➜ oneuser create -r pepe test
➜ oneuser list
  ID USER            PASSWORD                                          
   0 addn            e17a1675754834936f71bb1243123772d251503440791e72          
   1 peer             testint

➜ oneuser create huhu passd
➜ oneuser list
  ID USER            PASSWORD                                          
   0 addn            e17a1675754834936f71bb1243123772d251503440791e72          
   1 peer             testint

   2 huhu            368448601d101b7df3b75580fe314c3c59b4f1b7 
➜ oneuser list
  ID USER            PASSWORD                                          
   0 addn            e17a1675754834936f71bb1243123772d251503440791e72          
   1 peer             testint

   2 huhu            368448601d101b7df3b75580fe314c3c59b4f1b7

Associated revisions

Revision 7b22fc9c
Added by Javi Fontan almost 11 years ago

Bug #352: oneuser gets only the first line if a file is specified

History

#1 Updated by Daniel Molina over 10 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
  • Resolution set to fixed

Also available in: Atom PDF