# include <selinux/selinux.h>
#endif
-#include "dosname.h"
-
#define QEMU_QXL_VGAMEM_DEFAULT 16 * 1024
#define VIR_FROM_THIS VIR_FROM_QEMU
* (want /dev/disk/by-id/../../sda)
* /dev/stdout -> /proc/self/fd/1 (no change needed)
*/
- if (IS_RELATIVE_FILE_NAME(target)) {
+ if (!g_path_is_absolute(target)) {
char *c = NULL, *tmp = NULL, *devTmp = NULL;
devTmp = g_strdup(device);
return ret;
}
- if (IS_RELATIVE_FILE_NAME(target)) {
+ if (!g_path_is_absolute(target)) {
char *c = NULL, *tmp = NULL, *fileTmp = NULL;
fileTmp = g_strdup(file);
/* We don't need the full canonicalization of intermediate
* directories, if linkpath is absolute and the basename is
* already a non-symlink. */
- if (IS_ABSOLUTE_FILE_NAME(linkpath) && !intermediatePaths) {
+ if (g_path_is_absolute(linkpath) && !intermediatePaths) {
if (g_lstat(linkpath, &st) < 0)
return -1;
/* if we are passed an absolute path (starting with /), return a
* copy of that path, after validating that it is executable
*/
- if (IS_ABSOLUTE_FILE_NAME(file)) {
+ if (g_path_is_absolute(file)) {
if (!virFileIsExecutable(file))
return NULL;