mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
parent
f68bb99569
commit
d4fc0075bf
@ -53,7 +53,7 @@ namespace
|
||||
bool isDevice(const std::string& path)
|
||||
{
|
||||
struct stat stbuf;
|
||||
if (stat(path.c_str(), stbuf) == 0)
|
||||
if (stat(path.c_str(), &stbuf) == 0)
|
||||
{
|
||||
if (S_ISBLK(stbuf.st_mode))
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user