dmraid-1.0.0_rc16-undo-p-rename.patch 531 B

1234567891011121314
  1. Author: Giuseppe Iuculano <giuseppe@iuculano.it>
  2. Description: Removed "p" from device name. A proper upgrade script is needed before using it.
  3. --- a/1.0.0.rc15/lib/format/partition/dos.c
  4. +++ b/1.0.0.rc15/lib/format/partition/dos.c
  5. @@ -31,7 +31,7 @@ _name(struct lib_context *lc, struct rai
  6. {
  7. const char *base = get_basename(lc, rd->di->path);
  8. - return type ? snprintf(str, len, "%s%s%u", base, OPT_STR_PARTCHAR(lc),
  9. + return type ? snprintf(str, len, "%s%u", base,
  10. partition) : snprintf(str, len, "%s", base);
  11. }