lib: follow symlinks in maildirs
Until now, mu would _not_ follow symlinks; with these changes, we do. There were some complications with that ~10 years ago, but I forgot the details. So let's re-enable. At least one thing is in place now: moving between file systems. Fixes #1489 Fixes #1628 (technically, this came with slightly earlier commit)
This commit is contained in:
@ -257,15 +257,16 @@ enum {
|
||||
|
||||
|
||||
/**
|
||||
* get the d_type (as in direntry->d_type) for the file at path, using
|
||||
* lstat(3)
|
||||
* get the d_type (as in direntry->d_type) for the file at path, using either
|
||||
* stat(3) or lstat(3)
|
||||
*
|
||||
* @param path full path
|
||||
* @param use_lstat whether to use lstat (otherwise use stat)
|
||||
*
|
||||
* @return DT_REG, DT_DIR, DT_LNK, or DT_UNKNOWN (other values are not
|
||||
* supported currently )
|
||||
* @return DT_REG, DT_DIR, DT_LNK, or DT_UNKNOWN (other values are not supported
|
||||
* currently )
|
||||
*/
|
||||
unsigned char mu_util_get_dtype_with_lstat (const char *path);
|
||||
unsigned char mu_util_get_dtype (const char *path, gboolean use_lstat);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user