char **pstripped)
{
struct tm tm;
- time_t timestamp;
+ time_t timestamp = 0;
const char *p;
char *q;
- char *stripped;
+ char *stripped = NULL;
size_t rest_len, dst_len;
struct shadow_copy2_config *config;
const char *snapdir;
const char *mask,
uint32_t attr)
{
- time_t timestamp;
- char *stripped;
+ time_t timestamp = 0;
+ char *stripped = NULL;
DIR *ret;
int saved_errno;
char *conv;
const struct smb_filename *smb_fname_src,
const struct smb_filename *smb_fname_dst)
{
- time_t timestamp_src, timestamp_dst;
+ time_t timestamp_src = 0;
+ time_t timestamp_dst = 0;
if (!shadow_copy2_strip_snapshot(talloc_tos(), handle,
smb_fname_src->base_name,
static int shadow_copy2_symlink(vfs_handle_struct *handle,
const char *oldname, const char *newname)
{
- time_t timestamp_old, timestamp_new;
+ time_t timestamp_old = 0;
+ time_t timestamp_new = 0;
if (!shadow_copy2_strip_snapshot(talloc_tos(), handle, oldname,
×tamp_old, NULL)) {
static int shadow_copy2_link(vfs_handle_struct *handle,
const char *oldname, const char *newname)
{
- time_t timestamp_old, timestamp_new;
+ time_t timestamp_old = 0;
+ time_t timestamp_new = 0;
if (!shadow_copy2_strip_snapshot(talloc_tos(), handle, oldname,
×tamp_old, NULL)) {
static int shadow_copy2_stat(vfs_handle_struct *handle,
struct smb_filename *smb_fname)
{
- time_t timestamp;
- char *stripped, *tmp;
+ time_t timestamp = 0;
+ char *stripped = NULL;
+ char *tmp;
int ret, saved_errno;
if (!shadow_copy2_strip_snapshot(talloc_tos(), handle,
static int shadow_copy2_lstat(vfs_handle_struct *handle,
struct smb_filename *smb_fname)
{
- time_t timestamp;
- char *stripped, *tmp;
+ time_t timestamp = 0;
+ char *stripped = NULL;
+ char *tmp;
int ret, saved_errno;
if (!shadow_copy2_strip_snapshot(talloc_tos(), handle,
static int shadow_copy2_fstat(vfs_handle_struct *handle, files_struct *fsp,
SMB_STRUCT_STAT *sbuf)
{
- time_t timestamp;
+ time_t timestamp = 0;
int ret;
ret = SMB_VFS_NEXT_FSTAT(handle, fsp, sbuf);
struct smb_filename *smb_fname, files_struct *fsp,
int flags, mode_t mode)
{
- time_t timestamp;
- char *stripped, *tmp;
+ time_t timestamp = 0;
+ char *stripped = NULL;
+ char *tmp;
int ret, saved_errno;
if (!shadow_copy2_strip_snapshot(talloc_tos(), handle,
static int shadow_copy2_unlink(vfs_handle_struct *handle,
const struct smb_filename *smb_fname)
{
- time_t timestamp;
- char *stripped;
+ time_t timestamp = 0;
+ char *stripped = NULL;
int ret, saved_errno;
struct smb_filename *conv;
static int shadow_copy2_chmod(vfs_handle_struct *handle, const char *fname,
mode_t mode)
{
- time_t timestamp;
- char *stripped;
+ time_t timestamp = 0;
+ char *stripped = NULL;
int ret, saved_errno;
char *conv;
static int shadow_copy2_chown(vfs_handle_struct *handle, const char *fname,
uid_t uid, gid_t gid)
{
- time_t timestamp;
- char *stripped;
+ time_t timestamp = 0;
+ char *stripped = NULL;
int ret, saved_errno;
char *conv;
static int shadow_copy2_chdir(vfs_handle_struct *handle,
const char *fname)
{
- time_t timestamp;
- char *stripped;
+ time_t timestamp = 0;
+ char *stripped = NULL;
int ret, saved_errno;
char *conv;
const struct smb_filename *smb_fname,
struct smb_file_time *ft)
{
- time_t timestamp;
- char *stripped;
+ time_t timestamp = 0;
+ char *stripped = NULL;
int ret, saved_errno;
struct smb_filename *conv;
static int shadow_copy2_readlink(vfs_handle_struct *handle,
const char *fname, char *buf, size_t bufsiz)
{
- time_t timestamp;
- char *stripped;
+ time_t timestamp = 0;
+ char *stripped = NULL;
int ret, saved_errno;
char *conv;
static int shadow_copy2_mknod(vfs_handle_struct *handle,
const char *fname, mode_t mode, SMB_DEV_T dev)
{
- time_t timestamp;
- char *stripped;
+ time_t timestamp = 0;
+ char *stripped = NULL;
int ret, saved_errno;
char *conv;
static char *shadow_copy2_realpath(vfs_handle_struct *handle,
const char *fname)
{
- time_t timestamp;
+ time_t timestamp = 0;
char *stripped = NULL;
char *tmp = NULL;
char *result = NULL;
TALLOC_CTX *mem_ctx,
struct security_descriptor **ppdesc)
{
- time_t timestamp;
- char *stripped;
+ time_t timestamp = 0;
+ char *stripped = NULL;
NTSTATUS status;
char *conv;
TALLOC_CTX *mem_ctx,
struct security_descriptor **ppdesc)
{
- time_t timestamp;
- char *stripped;
+ time_t timestamp = 0;
+ char *stripped = NULL;
NTSTATUS status;
char *conv;
static int shadow_copy2_mkdir(vfs_handle_struct *handle,
const char *fname, mode_t mode)
{
- time_t timestamp;
- char *stripped;
+ time_t timestamp = 0;
+ char *stripped = NULL;
int ret, saved_errno;
char *conv;
static int shadow_copy2_rmdir(vfs_handle_struct *handle, const char *fname)
{
- time_t timestamp;
- char *stripped;
+ time_t timestamp = 0;
+ char *stripped = NULL;
int ret, saved_errno;
char *conv;
static int shadow_copy2_chflags(vfs_handle_struct *handle, const char *fname,
unsigned int flags)
{
- time_t timestamp;
- char *stripped;
+ time_t timestamp = 0;
+ char *stripped = NULL;
int ret, saved_errno;
char *conv;
const char *fname, const char *aname,
void *value, size_t size)
{
- time_t timestamp;
- char *stripped;
+ time_t timestamp = 0;
+ char *stripped = NULL;
ssize_t ret;
int saved_errno;
char *conv;
const char *fname,
char *list, size_t size)
{
- time_t timestamp;
- char *stripped;
+ time_t timestamp = 0;
+ char *stripped = NULL;
ssize_t ret;
int saved_errno;
char *conv;
static int shadow_copy2_removexattr(vfs_handle_struct *handle,
const char *fname, const char *aname)
{
- time_t timestamp;
- char *stripped;
+ time_t timestamp = 0;
+ char *stripped = NULL;
int ret, saved_errno;
char *conv;
const char *aname, const void *value,
size_t size, int flags)
{
- time_t timestamp;
- char *stripped;
+ time_t timestamp = 0;
+ char *stripped = NULL;
ssize_t ret;
int saved_errno;
char *conv;
static int shadow_copy2_chmod_acl(vfs_handle_struct *handle,
const char *fname, mode_t mode)
{
- time_t timestamp;
- char *stripped;
+ time_t timestamp = 0;
+ char *stripped = NULL;
ssize_t ret;
int saved_errno;
char *conv;
TALLOC_CTX *mem_ctx,
char **found_name)
{
- time_t timestamp;
- char *stripped;
+ time_t timestamp = 0;
+ char *stripped = NULL;
ssize_t ret;
int saved_errno;
char *conv;
static const char *shadow_copy2_connectpath(struct vfs_handle_struct *handle,
const char *fname)
{
- time_t timestamp;
+ time_t timestamp = 0;
char *stripped = NULL;
char *tmp = NULL;
char *result = NULL;
const char *path, uint64_t *bsize,
uint64_t *dfree, uint64_t *dsize)
{
- time_t timestamp;
- char *stripped;
+ time_t timestamp = 0;
+ char *stripped = NULL;
ssize_t ret;
int saved_errno;
char *conv;
enum SMB_QUOTA_TYPE qtype, unid_t id,
SMB_DISK_QUOTA *dq)
{
- time_t timestamp;
- char *stripped;
+ time_t timestamp = 0;
+ char *stripped = NULL;
int ret;
int saved_errno;
char *conv;