#include "includes.h"
#include "printing.h"
+#include "smbd/proto.h"
-extern struct current_user current_user;
extern userdom_struct current_user_info;
/****************************************************************************
}
if (do_sub && snum != -1) {
- syscmd = talloc_sub_advanced(ctx,
+ syscmd = talloc_sub_full(ctx,
lp_servicename(talloc_tos(), snum),
current_user_info.unix_name,
"",
- current_user.ut.gid,
+ get_current_gid(NULL),
get_current_username(),
current_user_info.domain,
syscmd);
}
}
- ret = smbrun_no_sanitize(syscmd,outfd);
+ ret = smbrun_no_sanitize(syscmd, outfd, NULL);
DEBUG(3,("Running the command `%s' gave %d\n",syscmd,ret));
static int generic_queue_pause(int snum)
{
return print_run_command(snum, lp_printername(talloc_tos(), snum), True,
- lp_queuepausecommand(talloc_tos(), snum), NULL, NULL);
+ lp_queuepause_command(talloc_tos(), snum), NULL, NULL);
}
/****************************************************************************
static int generic_queue_resume(int snum)
{
return print_run_command(snum, lp_printername(talloc_tos(), snum), True,
- lp_queueresumecommand(talloc_tos(), snum), NULL, NULL);
+ lp_queueresume_command(talloc_tos(), snum), NULL, NULL);
}
/****************************************************************************