mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
change almost all uses: s/IS_DEVICE/RESOLVE_DEVICE/
Use this command:
git grep -l -w IS_DEVICE|xargs perl -pi -e \
's/\b(?:IS_DEVICE)\b( \(.*?,) (.*?)\)/RESOLVE_DEVICE$1 return $2)/'
This commit is contained in:
@@ -391,7 +391,7 @@ do_file (char *path)
|
||||
char *buf;
|
||||
int len;
|
||||
|
||||
NEED_ROOT_OR_IS_DEVICE (path, NULL);
|
||||
NEED_ROOT_OR_IS_DEVICE (path, return NULL);
|
||||
|
||||
if (strncmp (path, "/dev/", 5) == 0)
|
||||
buf = (char *) path;
|
||||
|
||||
Reference in New Issue
Block a user