Skip to contentSkip to conversation

support: fix typo in mkusers

PATCH New Philip Paeps 3 participants 3 messages Mar 5, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 support: fix typo in mkusers

This fixes the spurious "[: too many arguments" errors from mkusers.

---
 support/scripts/mkusers |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
support/scripts/mkusers +1 -1
index a67356a..90d1df7 100755
@@ -63,7 +63,7 @@ get_uid() {
 get_ugid() {
     local username="${1}"
 
-    awk -F:i -v username="${username}"                          \
+    awk -F: -v username="${username}"                          \
         '$1 == username { printf( "%d\n", $4 ); }' "${PASSWD}"
 }
 
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 support: fix typo in mkusers

Philip, All,

On 2014-03-05 11:04 +0100, Philip Paeps spake thusly:

Quoted 3 lines

This fixes the spurious "[: too many arguments" errors from mkusers.

Regards,
Yann E. MORIN.

Quoted 24 lines
---
 support/scripts/mkusers |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
support/scripts/mkusers +1 -1
index a67356a..90d1df7 100755
@@ -63,7 +63,7 @@ get_uid() {
 get_ugid() {
     local username="${1}"
 
-    awk -F:i -v username="${username}"                          \
+    awk -F: -v username="${username}"                          \
         '$1 == username { printf( "%d\n", $4 ); }' "${PASSWD}"
 }
 
Signature · 6 lines
1.7.10.4

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#2 lore raw

PATCH 1/1 support: fix typo in mkusers

In reply to Philip Paeps

Dear Philip Paeps,

Quoted 6 lines · Philip Paeps

This fixes the spurious "[: too many arguments" errors from mkusers.

---
 support/scripts/mkusers |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com