Re: [PATCH] Tools: hv: Fix for long file names from readdir

From: Olaf Hering
Date: Thu Nov 08 2012 - 09:34:25 EST


On Thu, Nov 08, Tomas Hozza wrote:

> kvp_get_if_name and kvp_mac_to_if_name copy strings into statically
> sized buffers which could be too small to store really long names.

> - char dev_id[256];
> + char dev_id[512];

Shouldnt that be PATH_MAX or similar?

Olaf
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/