aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2006-09-15 18:15:57 +0000
committerBill Nottingham <notting@redhat.com>2006-09-15 18:15:57 +0000
commit93a0226ff87132f1560cbd0821eab07175023c9a (patch)
tree991371f342d1459cbc09863072a15f41fbb36d5a /src
parentd785191f52a36e283d910bac453b65b6890431c5 (diff)
downloadinitscripts-93a0226ff87132f1560cbd0821eab07175023c9a.tar
initscripts-93a0226ff87132f1560cbd0821eab07175023c9a.tar.gz
initscripts-93a0226ff87132f1560cbd0821eab07175023c9a.tar.bz2
initscripts-93a0226ff87132f1560cbd0821eab07175023c9a.tar.xz
initscripts-93a0226ff87132f1560cbd0821eab07175023c9a.zip
name it something more obvious as a temporary device
Diffstat (limited to 'src')
-rw-r--r--src/rename_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rename_device.c b/src/rename_device.c
index 295e4461..baf3c045 100644
--- a/src/rename_device.c
+++ b/src/rename_device.c
@@ -258,7 +258,7 @@ void rename_device(char *src, char *target, struct netdev *current) {
}
}
if (!dev)
- asprintf(&dev,"dev%d",rand());
+ asprintf(&dev,"__tmp%d",rand());
if (!dev)
return;
tmpdev = calloc(1,sizeof(struct netdev));