1
by Joey Hess
* Updated translations: |
1 |
/*
|
2 |
* map devfs names to old-style names
|
|
3 |
*
|
|
4 |
*/
|
|
5 |
||
6 |
#include <debian-installer.h> |
|
7 |
||
8 |
int main (int argc, char **argv) { |
|
4
by Colin Watson
* Resynchronise with Debian. |
9 |
static char buf[256]; |
10 |
size_t len = sizeof(buf); |
|
11 |
||
12 |
if (argc != 2) { |
|
13 |
fprintf(stderr, "Wrong number of args: mapdevfs <path>\n"); |
|
14 |
return 1; |
|
15 |
}
|
|
16 |
||
17 |
if ((di_system_devfs_map_from(argv[1], buf, len))) { |
|
18 |
printf("%s\n", buf); |
|
19 |
return 0; |
|
20 |
}
|
|
21 |
||
22 |
return 1; |
|
1
by Joey Hess
* Updated translations: |
23 |
}
|