]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/scan.c
Replace explicit checks for "/" with calls to IsPathSeparator, strchr with first_path...
[bacula/bacula] / bacula / src / stored / scan.c
index 2be050fa6d4f182ada10aa3c909477fa7a647c82..80f8f76957a5b008ce9429d6422cace71aeed9e9 100644 (file)
@@ -64,7 +64,7 @@ bool DEVICE::scan_dir_for_volume(DCR *dcr)
    
    len = strlen(mount_point);
    if (len > 0) {
-      need_slash = mount_point[len - 1] != '/';
+      need_slash = !IsPathSeparator(mount_point[len - 1]);
    }
    entry = (struct dirent *)malloc(sizeof(struct dirent) + name_max + 1000);
    for ( ;; ) {