hdparm/hdparm-leak-fix.patch
Dirk Mueller 32f2009eba - update to 9.60:
- support for ioSafe Solo with jMicron bridge, courtesy Matthias-Christian Ott.
  - decode more bits from id[69], courtesy Adrián Kálazi.
  - allow passing of custom LDFLAGS from the environment.
  - add new "static" target.
  - fix --dco-identify max sectors, courtesy of Paul Sultana.
  - get rid of leftover "unknown" variables from identify.c
  - fixed return values from get_log_page_data().

OBS-URL: https://build.opensuse.org/package/show/Base:System/hdparm?expand=0&rev=94
2020-12-20 12:49:24 +00:00

23 lines
697 B
Diff

Index: hdparm-9.60/hdparm.c
===================================================================
--- hdparm-9.60.orig/hdparm.c
+++ hdparm-9.60/hdparm.c
@@ -1199,7 +1199,7 @@ static int abort_if_not_full_device (int
struct stat st;
__u64 start_lba;
int i, err, shortened = 0;
- char *fdevname = strdup(devname);
+ char *fdevname = strdupa(devname);
if (0 == fstat(fd, &st) && S_ISCHR(st.st_mode))
return 0; /* skip geometry test for character (non-block) devices; eg. /dev/sg* */
@@ -1212,7 +1212,7 @@ static int abort_if_not_full_device (int
}
if (!shortened)
- fdevname = strdup("the full disk");
+ fdevname = strdupa("the full disk");
if (start_lba == 0ULL)
return 0;