device-table.pl: devices nodes are simple files

Lisandro Damián Nicanor Pérez Meyer <[email protected]>
Newsgroups gmane.linux.debian.devel.embedded
Message-ID <[email protected]>
Hi! Just before I start, two notes:
- I may be missing something.
- I don't speak perl :-)

On trying device-table.pl I found that instead of device nodes I got simple 
files as output.

I have tried running as a normal user and as root, in both cases with and 
without fakeroot (even if it should not be necessary while using root).

So I decided to take a look to the script. I found that running a line like 
device-table.pl::120 with fakeroot will create simple files, while running 
them as root they were proper device nodes.

I then commented out lines [41-43] and 45. This time the script worked. Of 
course, I ran it as root.

[further reading the script]

And reading further I found the --no-fakeroot option. Also works as expected. 
I can make patches for the documentation to show this option.

Kind regard, Lisandro.

-- 
En los momentos de crisis, la imaginación es mas importante que el 
conocimiento.
 Albert Einstein

Lisandro Damián Nicanor Pérez Meyer
http://perezmeyer.com.ar/
http://perezmeyer.blogspot.com/
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAABCAAGBQJOHKGuAAoJEKtkX0BihqfQoIQP/3hHH/oq379RUjWObo4biFoG
YDexx07cHTA48fanPkrL4PkRhoWMFEKzWsWhvs8+bnzntaWZbGJaUQEgM7q8l2tx
u9gZssjH5/k1oG+HXcbQ/t/gSHdFafRAS7rrUi8rkUjHMyrOKFChRUQVyQuQy1lA
b0j0qWVmGVlGpoOqVYNfd6rpw24qnzRD5P5+upzerhfENLg0acHmdg92MZWpDRSN
hKB3kq9dAEa6RgxJ6Ji5w8lDoIX/Mzvm7S18BHYJpwQh2XwcmWck3OwWfQLeXBDz
3AJmAkAdoyjREwyvXdC6wKPzGv0Han7rn0mVRcDLo5hcaf/+L0gHtLPiVRGZKj/b
8TGG/NUgT5k0+323KIglLYdWwliemn8FqY9D96wNYF55av2U9mDR8Eg8Dz1vXJLq
EVXYMy0og+FChbRnF+gAAxmLZCgwIj/bjtCtf1COOGPKd68rSPJDCfvTEsU3o9ry
KKYzgBQMK4fzo3tTku47rf1RGkT4Hu9xOvXWQFrztsARnyUP6MLNlv+RSARPqv4x
Og9ayPPrI0JG1lkLv1AHDXH3CskIw+xpaI3h+02PAYNamwXRIZZ6hmCyrTmyQwnD
wIfUQi3ZQwF3yIKoguD5GpQywITljOgRzQhrDhvbc+RhlcW+dAui/uO+w0Is8+FY
1pOm/6u3bdSY2UYzcOk2
=h58D
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.