mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 15:15:46 +00:00
net: Remove the deprecated -tftp, -bootp, -redir and -smb options
These options likely do not work as expected as soon as the user tries to use more than one network interface at once. The parameters have been marked as deprecated since QEMU v2.6, so users had plenty of time to move their scripts to the new syntax. Time to remove the old parameters now. Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Acked-by: Peter Krempa <pkrempa@redhat.com> Acked-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
@ -168,14 +168,6 @@ static bool os_parse_runas_uid_gid(const char *optarg)
|
||||
int os_parse_cmd_args(int index, const char *optarg)
|
||||
{
|
||||
switch (index) {
|
||||
#ifdef CONFIG_SLIRP
|
||||
case QEMU_OPTION_smb:
|
||||
error_report("The -smb option is deprecated. "
|
||||
"Please use '-netdev user,smb=...' instead.");
|
||||
if (net_slirp_smb(optarg) < 0)
|
||||
exit(1);
|
||||
break;
|
||||
#endif
|
||||
case QEMU_OPTION_runas:
|
||||
user_pwd = getpwnam(optarg);
|
||||
if (user_pwd) {
|
||||
|
Reference in New Issue
Block a user